import React from 'react';
import './App.css';
import {BrowserRouter as Router} from 'react-router-dom'
import {Provider} from 'react-redux'
import store,{persistor} from './store'
import RouterView from "./router/RouterView";
import routes from "./router/router-config";
import {PersistGate} from 'redux-persist/lib/integration/react';


function App() {
  return (
    <Provider store={store}>
      <PersistGate loading={null} persistor={persistor}>
        <Router className="App">
          <RouterView routes={routes}/>
        </Router>
      </PersistGate>
    </Provider>
  );
}

export default App;
